class Test3():

    @property
    def a(self):
        return self._a

    @a.setter
    def a(self, value):
        self._a = value


test = Test3()
test.a = 2
print(test.a)
